package com.kingbull.web.communic;

import java.util.List;
import java.util.Map;

public class Body {
    /**
     * 入参
     */
    //必填、18位身份证号码\二维码（身份证号）VARCHAR2(30)
    private String idCardNo;
    //车牌号VARCHAR2(20 char)
    private String carNumber;
    //必填、磅数 NUMBER(18,2)
    private double weighNum;
    //必填、地磅ID VARCHAR2(50)
    private String scalesID;
    //必填、读卡器ID VARCHAR2(50)
    private String cardReader;
    //仓库号 VARCHAR2(20)
    private String storeNumber;

    /**
     * 入参 1001
     */
    public Body(String idCardNo, String carNumber, double weighNum, String scalesID, String cardReader) {
        this.idCardNo = idCardNo;
        this.carNumber = carNumber;
        this.weighNum = weighNum;
        this.scalesID = scalesID;
        this.cardReader = cardReader;
    }

    /**
     * 入参 1003
     */
    public Body(String idCardNo, String cardReader) {
        this.idCardNo = idCardNo;
        this.cardReader = cardReader;
    }

    /**
     * 入参 1004
     */
    public Body(String idCardNo, String cardReader, String storeNumber) {
        this.idCardNo = idCardNo;
        this.cardReader = cardReader;
        this.storeNumber = storeNumber;
    }

    /**
     * 出参 1001 主体
     */
    //客户名称 VARCHAR2(50 char)
    private String customerInfo;
    //车牌号是否一致，0 不一致、1 一致 NUMBER(1)
    private int isCardReader;
    //订单类型（1 销售订单、2 原材料订单、3 倒料订单、4 其他材料订单） NUMBER(1)
    private int orderType;
    //开闸方向（1车前方，2车后方） NUMBER(1)
    private int openDirection;
    //过磅次数（1一次过磅、2二次过磅）
    private int weighCount;

    public Body(String customerInfo, int isCardReader, int orderType, int openDirection, int weighCount) {
        this.customerInfo = customerInfo;
        this.isCardReader = isCardReader;
        this.orderType = orderType;
        this.openDirection = openDirection;
        this.weighCount = weighCount;
    }
    /**
     * 出参 1003 主体 customerInfo 、orderType
     */
    public Body(String customerInfo, int orderType) {
        this.customerInfo = customerInfo;
        this.orderType = orderType;
    }

    /**
     * 出参 1004 主体
     */
    //开票数量 NUMBER(18,2)
    private Double billNum;

    public Body(Double billNum) {
        this.billNum = billNum;
    }


    public Body() {
    }

    public int getIsCardReader() {
        return isCardReader;
    }

    public void setIsCardReader(int isCardReader) {
        this.isCardReader = isCardReader;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public int getOpenDirection() {
        return openDirection;
    }

    public void setOpenDirection(int openDirection) {
        this.openDirection = openDirection;
    }

    public int getWeighCount() {
        return weighCount;
    }

    public void setWeighCount(int weighCount) {
        this.weighCount = weighCount;
    }

    public Double getBillNum() {
        return billNum;
    }

    public void setBillNum(Double billNum) {
        this.billNum = billNum;
    }

    //订单信息明细
    private List<Map<String, Object>> params;

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }
    public String getIdCardNo() {
        return idCardNo;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }
    public String getCarNumber() {
        return carNumber;
    }

    public void setWeighNum(double weighNum) {
        this.weighNum = weighNum;
    }
    public double getWeighNum() {
        return weighNum;
    }

    public void setScalesID(String scalesID) {
        this.scalesID = scalesID;
    }
    public String getScalesID() {
        return scalesID;
    }

    public void setCardReader(String cardReader) {
        this.cardReader = cardReader;
    }
    public String getCardReader() {
        return cardReader;
    }

    public List<Map<String, Object>> getParams() {
        return params;
    }

    public void setParams(List<Map<String, Object>> params) {
        this.params = params;
    }

    public String getCustomerInfo() {
        return customerInfo;
    }

    public void setCustomerInfo(String customerInfo) {
        this.customerInfo = customerInfo;
    }

    @Override
    public String toString() {
        return "Body{" +
                "idCardNo='" + idCardNo + '\'' +
                ", carNumber='" + carNumber + '\'' +
                ", weighNum=" + weighNum +
                ", scalesID='" + scalesID + '\'' +
                ", cardReader='" + cardReader + '\'' +
                ", customerInfo='" + customerInfo + '\'' +
                ", isCardReader=" + isCardReader +
                ", orderType=" + orderType +
                ", openDirection=" + openDirection +
                ", weighCount=" + weighCount +
                ", billNum=" + billNum +
                ", params=" + params +
                '}';
    }

    public String getStoreNumber() {
        return storeNumber;
    }

    public void setStoreNumber(String storeNumber) {
        this.storeNumber = storeNumber;
    }
}
